
#include <stdlib.h>
#include <memory.h>
#include "tp_typedef.h"
#include "tp_memory.h"

void* tp_alloc(size_t size)
{
	void* buffer = malloc(size);
	if (NULL != buffer)
	{
		memset(buffer, 0, size);
	}

	return buffer;
}

void tp_free(void* memblock)
{
	if (NULL != memblock)
	{
		free(memblock);
	}

	return;
}